import mockRequest from '@/utils/Mockrequest'

export default{
    namespaced:true,
    getters:{},
    state:{
        data:{}
    },
    mutations:{
        UPDATA(state,value){
            state.data = value
        }
    },
    actions:{
        async getMockData(store){
            const result = await mockRequest.get('/home/list')
            if(result.code == 20000){
                store.commit('UPDATA',result.data)
            }
        }
    }
}